#ifndef CLIENTSOCKET_H
#define CLIENTSOCKET_H

#include "Socket.h"
#include "ClientInfo.h"

#include <D3DX10.h>
#include <string>

class ClientSocket : public Socket
{
public:
	ClientSocket();
	~ClientSocket();
	bool Open(const std::string& hostname, int port);
	void SetSocket(const TCPsocket& s);

	void SetID(int i);
	int GetID() const;
	const D3DXVECTOR3& GetPos() const;
	void SetPos(const D3DXVECTOR3& pos);
	const D3DXVECTOR3& GetVel() const;
	void SetVel(const D3DXVECTOR3& vel);
private:
	int m_id;

	ClientInfo m_info;
};

#endif //CLIENTSOCKET_H